#include	"app.h"
#include	"kernel.h"
//#include	"global.h"
#include	"module.h"
#include	"sci.h"


enum DENTAL_CHAIR_MODE
{
	cInitialMode = 0,		//
	CNormalMode,			//
//	CFaultMode,				//
	CDataSaveMode			//
};

void sInitialMode(void);
void sNormalMode(void);


INT8U ubDtlChrMode = 0; // 模式
static TASK_EVENT eSuperEvent = 0;



void sSuperTask(void)
{
	while(1)
    {    	
    	if(ubDtlChrMode == cInitialMode)
		{
			sInitialMode();
		}		
		else
		{
			sNormalMode();
		}
    }

}


void sInitialMode(void)
{
	ubDtlChrMode = CNormalMode;
}

void sNormalMode(void)
{
	while(1)
    {
        eSuperEvent = OSEventPend();
		
        if(OSEventConfirm(eSuperEvent,eSuperTimer))
        {
			
        }
    }
}






